<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录</title>
    <meta charset="UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link type="text/css"  th:href="@{/css/index.css}" rel="stylesheet"/>
    <script th:src="@{/js/jQuery1.7.2.js}" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            //判断一下当前页面是不是顶层，如果不是，则做一下顶层页面重定向
            if (window != top) {
                top.location.href = location.href;
            }
        });
    </script>
</head>
<body>
    <div class="login_wall">
        <div class="login_logo">
            <img class="login_img" src="images/logo.png">
        </div>
        <div class="login_main">
                    <span class="login_span fl">
                        <img th:src="@{/images/login_07.png}" width="422" height="322">
                    </span>
            <div class="login_dl fr">
                <form th:action="@{/login}" method="post">
                    <span class="login_dl_span"><img th:src="@{/images/login_j_03.png}">登录<a class="fr" th:href="@{/register}">注册</a></span>
                    <p class="mt5"><span class="msg">[[${msg}]]</span></p>
                    <p><em>用户名：</em><input type="text" name="userName" required="required" placeholder="请输入用户名" autocomplete="off"><span class="msg fl"></span></p>
                    <p><em>密　码：</em><input type="password" name="userPassword"	required="required" placeholder="请输入登陆密码"><span class="msg fl"></span></p>
                    <p><em>验证码：</em><input type="text" style="width: 145px;" name="captcha"
                                           required="required" placeholder="请输入验证码" autocomplete="off">
                        <img th:src="@{/captcha}" style="margin-left:5px"
                             onclick="this.src=this.src+'?d='+Math.random();"
                             title="点击刷新" alt="captcha">
                    </p>
                    <input type="submit" value="确定" />
                </form>
            </div>
            <div class="clear"></div>
        </div>

    </div>
</body>
</html>